class TodoListBean {
  List<TodoBean> list = [];
  int total;

  TodoListBean({
    List<TodoBean> list,
    int total,
  })  : this.list = list ?? [],
        this.total = total ?? 0;

  TodoListBean.fromJson(Map<String, dynamic> json) {
    if (json['list'] != null) {
      list = <TodoBean>[];
      json['list'].forEach((v) => list.add(TodoBean.fromJson(v)));
    }
    total = json['total'];
  }
}

class TodoBean {
  String buildingNo;
  String buildingPhotoPath;
  String createBy;
  String createTime;
  int createType;
  String elevatorId;
  String id;
  String maintainer;
  String maintainerPhone;
  String maintenanceDate;
  String maintenancePlanDate;
  String maintenanceUnitId;
  int registerCode;
  String shaft;
  String shaftPhotoPath;
  int status;
  String unitNo;
  String updateBy;
  String updateTime;
  String villageName;

  TodoBean(
      {this.buildingNo,
      this.buildingPhotoPath,
      this.createBy,
      this.createTime,
      this.createType,
      this.elevatorId,
      this.id,
      this.maintainer,
      this.maintainerPhone,
      this.maintenanceDate,
      this.maintenancePlanDate,
      this.maintenanceUnitId,
      this.registerCode,
      this.shaft,
      this.shaftPhotoPath,
      this.status,
      this.unitNo,
      this.updateBy,
      this.updateTime,
      this.villageName});

  TodoBean.fromJson(Map<String, dynamic> json) {
    buildingNo = json['buildingNo'];
    buildingPhotoPath = json['buildingPhotoPath'];
    createBy = json['createBy'];
    createTime = json['createTime'];
    createType = json['createType'];
    elevatorId = json['elevatorId'];
    id = json['id'];
    maintainer = json['maintainer'];
    maintainerPhone = json['maintainerPhone'];
    maintenanceDate = json['maintenanceDate'];
    maintenancePlanDate = json['maintenancePlanDate'];
    maintenanceUnitId = json['maintenanceUnitId'];
    registerCode = json['registerCode'];
    shaft = json['shaft'];
    shaftPhotoPath = json['shaftPhotoPath'];
    status = json['status'];
    unitNo = json['unitNo'];
    updateBy = json['updateBy'];
    updateTime = json['updateTime'];
    villageName = json['villageName'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['buildingNo'] = this.buildingNo;
    data['buildingPhotoPath'] = this.buildingPhotoPath;
    data['createBy'] = this.createBy;
    data['createTime'] = this.createTime;
    data['createType'] = this.createType;
    data['elevatorId'] = this.elevatorId;
    data['id'] = this.id;
    data['maintainer'] = this.maintainer;
    data['maintainerPhone'] = this.maintainerPhone;
    data['maintenanceDate'] = this.maintenanceDate;
    data['maintenancePlanDate'] = this.maintenancePlanDate;
    data['maintenanceUnitId'] = this.maintenanceUnitId;
    data['registerCode'] = this.registerCode;
    data['shaft'] = this.shaft;
    data['shaftPhotoPath'] = this.shaftPhotoPath;
    data['status'] = this.status;
    data['unitNo'] = this.unitNo;
    data['updateBy'] = this.updateBy;
    data['updateTime'] = this.updateTime;
    data['villageName'] = this.villageName;
    return data;
  }
}
